import axios from '@/libs/api.request'

export const mobileLogin = (data) => {
  return axios.request({
    url: '/ipbes/login/mobileLogin.htm',
    data,
    method: 'post'
  })
}

// 手机号效验
export const registerValid = (data) => {
  return axios.request({
    url: '/ipbes/login/registerValid.htm',
    data,
    method: 'post'
  })
}

// /ipbes/login/sendSecurityCode.htm
// 验证码
export const sendSecurityCode = (data) => {
  return axios.request({
    url: '/ipbes/login/sendSecurityCode.htm',
    data,
    method: 'post'
  })
}

// 注册
export const doRegister = (data) => {
  return axios.request({
    url: '/ipbes/login/doRegister.htm',
    data,
    method: 'post'
  })
}

// /ipbes/login/updatePassWord.htm
// 重置密码
export const updatePassWord = (data) => {
  return axios.request({
    url: '/ipbes/login/updatePassWord.htm',
    data,
    method: 'post'
  })
}

// 上传头像
export const uploadAppImg = (data) => {
  return axios.request({
    url: '/ipbes/sys/user/uploadAppImg.htm',
    data,
    method: 'post'
  })
}
